package com.study.samsung.Entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

//购物车表实体类
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ShoppingCart {
    private Integer gid;//购物车id
    private Integer gnum;//商品数量
    private Integer sxid;
    private Integer uid;
    private BigDecimal gprice;

    private Detail detail;

    public Detail getDetail() {
        return detail;
    }

    public void setDetail(Detail detail) {
        this.detail = detail;
    }

    public ShoppingCart(Integer gid, Integer gnum, Integer sxid, Integer uid, BigDecimal gprice) {
        this.gid = gid;
        this.gnum = gnum;
        this.sxid = sxid;
        this.uid = uid;
        this.gprice = gprice;
    }
}
